/**路由定义*/

import Home from '../views/home/index.vue'
import Category from '../views/category/index.vue'
import Cart from '../views/cart/index.vue'
import Mine from '../views/mine/index.vue'
import Video from '../views/video/index.vue'
import Login from '../views/login/index.vue'
import Register from '../views/register/index.vue'
import Tabbar from '../components/tabbar/index.vue'
import Detail from '../views/detail/index.vue'
import Confirm from '../views/confirm/index.vue'
import Setting from '../views/setting/index.vue'
export default [{
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        component: Login,
        meta: {
            nologin: true
        }
    },
    {
        path: '/home',
        components: {
            default: Home,
            footer: Tabbar,
        },
        meta: {
            title: '首页',
            icon: 'home-o',
            inMenu: true
        }
    },
    {
        path: '/category',
        components: {
            default: Category,
            footer: Tabbar,
        },
        meta: {
            title: '分类',
            icon: 'apps-o',
            inMenu: true
        }
    },
    {
        path: '/video',
        components: {
            default: Video,
            footer: Tabbar,
        },
        meta: {
            title: '视频',
            icon: 'video-o',
            inMenu: true
        }
    },
    {
        path: '/cart',
        components: {
            default: Cart,
            footer: Tabbar,
        },
        meta: {
            title: '购物车',
            icon: 'shopping-cart-o',
            inMenu: true,

        }
    },
    {
        path: '/mine',
        components: {
            default: Mine,
            footer: Tabbar,
        },
        meta: {
            title: '我的',
            icon: 'user-o',
            inMenu: true,
        }
    },
    {
        path: '/register',
        component: Register,
        meta: {
            nologin: true
        }
    },
    {
        path: '/detail',
        component: Detail
    },
    {
        path: '/confirm',
        component: Confirm
    },
    {
        path: '/setting',
        component: Setting
    }
]